package com.it.service.impl;

import com.it.dao.AdminMapper;
import com.it.domain.Admin;
import com.it.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;
    @Override
    public boolean VerifyAdmin(String username, String password) {

        Admin admin = new Admin();
        admin=adminMapper.findByuse(username,password);
        if(admin == null){
            return false;
        }
        else {
            return true;
        }
    }
}
